package com.demo.onvif.service;

import com.demo.onvif.domain.OnvifChannelEntity;
import com.demo.onvif.domain.OnvifEntity;
import de.onvif.soap.OnvifDevice;

import java.io.IOException;
import java.util.List;
import java.util.Set;

public interface IOnvifService {
    /**
     * 获取onvif设备
     * @param ip 当前 网络ip 可传不同网段
     * @return
     * @throws IOException
     */
    List<OnvifEntity> discoverOnvif(String ip) throws IOException;

    /**
     * 根据设备获取通道
     * @param onvifDevice  address 如 10.9.180.26:80
     *                     userName 如 onvif
     *                     password 如 master007
     * @return
     * @throws IOException
     */
    Set<OnvifChannelEntity> getOnvifChannel(OnvifDevice onvifDevice) throws IOException;
}
